const { BrowserWindow } = require('electron')
async function creatWin() {
    const mainWindow = new BrowserWindow({
        width: 600,
        height: 500,
        webPreferences: {
            webSecurity: false,
            nodeIntegration: true,
            contextIsolation: false
        },
        frame: false
    })
    await mainWindow.loadURL('https://www.baidu.com')
    mainWindow.openDevTools()
}
module.exports = {creatWin}